package com.alex.utils.common;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class ThreadPool {

	private ExecutorService executorService;
	
	public static ThreadPool get() {
		return Holder.threadPool;
	}
	
	private static class Holder {
		private static ThreadPool threadPool = new ThreadPool();
	}
	
	private ThreadPool() {
		executorService = Executors.newCachedThreadPool();
	}
	
	public ExecutorService getExecutorService() {
		return executorService;
	}
}
